Skip to content

[DO NOT MERGE] [Klaud Cold] experimental: profile MiniMax-M3 MI355X conc 4/8 — vllm#45639 (AITER AR + Gemma-RMS fusion) - #1771

Closed
functionstackx wants to merge 3 commits into
mainfrom
experimental/profile-minimaxm3-mi355-arfusion-45639-dnm
Closed

functionstackx wants to merge 3 commits into
mainfrom
experimental/profile-minimaxm3-mi355-arfusion-45639-dnm

Conversation

@functionstackx

@functionstackx functionstackx commented Jun 15, 2026 •

Copy link
Copy Markdown
Collaborator

[DO NOT MERGE] — experimental hardware profiling of an upstream WIP vLLM PR. Not for merge.

What

Profiling counterpart of #1770: capture Perfetto torch traces for MiniMax-M3 MXFP8 on MI355X (TP8, conc 4 and 8) with vllm-project/vllm#45639 (AITER fused all-reduce + Gemma-RMSNorm) applied in-place.

How

  • Label-triggered profile.yml: add the profile-enabled label and the workflow reads .github/profile-target.env, runs one profile job per (conc, tp), and emits a Perfetto trace (artifact + relay link) per job.
  • profile-target.env → CONFIG_KEY=minimaxm3arf-fp8-mi355x-vllm, CONC=4 8 (the #45639 recipe at TP8 → 2 jobs).
  • minimaxm3arf_fp8_mi355x.sh (from [DO NOT MERGE] [Klaud Cold] experimental: MiniMax-M3 MI355X conc 4/8 — apply vllm#45639 (AITER AR + Gemma-RMS fusion) #1770) gains the --profiler-config PROFILE=1 gate so it emits a torch trace, on top of:
    • applying the #45639 diff in-place (idempotent; hard-fails if it neither applies nor is already applied), and
    • the AITER fusion serve flags (VLLM_ROCM_USE_AITER=1, --compilation-config custom_ops -minimax_gemma_rms_norm + pass_config.fuse_allreduce_rms).

Built on the #45639 recipe/config/patch from #1770 — both are DO NOT MERGE.

Validation

bash -n ✓; profile.yml parses ✓; test-config + (conc,tp) filter → 2 jobs (TP8, conc 4 + 8, mi355x, minimaxm3arf_1k1k) ✓.

To run: add the profile-enabled label.

🤖 Generated with Claude Code


Note

Low Risk
Experimental, do-not-merge CI and benchmark plumbing only; no production serving path changes, though runtime vLLM patching could skew traces if the image drifts from the diff base.

Overview
Adds label-triggered profiling: putting profile-enabled on a PR runs profile.yml against .github/profile-target.env (currently minimaxm3arf-fp8-mi355x-vllm, TP8, conc 4 and 8), checks out the PR head SHA, and fans out one matrix job per (conc, tp) instead of a single job.

The workflow also sets SCENARIO_SUBDIR=fixed_seq_len/, routes MoE debug from job outputs, and retries trace-storage pushes with rebase when parallel jobs race on the same repo.

For the experiment it adds an experimental minimaxm3arf benchmark config, a minimaxm3arf_fp8_mi355x.sh recipe that applies vllm#45639 in-place (vendored diff, hard-fail on drift), serves with AITER AR+RMS fusion flags, and when PROFILE=1 passes --profiler-config so this image actually emits torch traces. perf-changelog.yaml documents the new config key.

Reviewed by Cursor Bugbot for commit 85aaced. Bugbot is set up for automated code reviews on this repo. Configure here.

functionstackx and others added 3 commits June 15, 2026 00:37
… applied

Validate vllm-project/vllm#45639 ("[ROCm][M3] Enable AITER AR + Gemma-RMS fusion
for MiniMax-M3") on real MI355X hardware before an image rebuild.

- benchmarks/single_node/fixed_seq_len/patches/vllm-45639-aiter-ar-gemma-rms.diff:
  vendored copy of the PR diff (4 files, +100/-17, base m3_release).
- benchmarks/single_node/fixed_seq_len/minimaxm3arf_fp8_mi355x.sh: applies that
  diff in-place to the shipped image's vllm with `patch -p1` (installs patch via
  apt if missing). Idempotent — proceeds if already applied (reverse-applies
  cleanly), applies if it applies cleanly, and HARD-FAILS (exit 1) if it neither
  applies nor is already applied (image drifted). Then serves with the fusion
  enabled: VLLM_ROCM_USE_AITER=1 + --compilation-config
  custom_ops=["-minimax_gemma_rms_norm"], pass_config.fuse_allreduce_rms=true.
- amd-master.yaml minimaxm3arf-fp8-mi355x-vllm: distinct model-prefix
  (minimaxm3arf) routes to the new recipe; smoke test at conc 4 and 8, TP8.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…39 patch

Profiling counterpart of the #45639 sweep PR: capture Perfetto torch traces for
MiniMax-M3 MXFP8 on MI355X (TP8, conc 4 and 8) with vllm-project/vllm#45639
(AITER fused all-reduce + Gemma-RMSNorm) applied in-place.

- Reuses the label-triggered profile.yml (add the 'profile-enabled' label; it
  reads .github/profile-target.env and emits one trace per (conc, tp)).
- profile-target.env -> minimaxm3arf-fp8-mi355x-vllm, conc 4 8 (the #45639 recipe).
- minimaxm3arf_fp8_mi355x.sh: adds the --profiler-config PROFILE gate so the
  recipe emits a torch trace under PROFILE=1, on top of applying the #45639 diff
  in-place (idempotent + hard-fail) and the AITER fusion serve flags.

Built on the #45639 recipe/config/patch (#1770); both are DO NOT MERGE.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution! For vLLM & SGLang, please ensure that your recipes is similar to the official vLLM recipes and/or the SGLang cookbook

If it is not, please create a PR first before we can merge your single node PR into the master branch. Let's ensure that the documentation is first class such that the entire ML community can benefit from your hard work! Thank you

PR authors are responsible for ensuring that after merging, all GitHub Action jobs fully pass. A lot of the time, failures are just flakes and simply re-running the failed jobs will fix it. If re-running failed jobs is attempted, PR authors are responsible for ensuring it passes. See GitHub's docs on re-running failed jobs: https://docs.github.com/en/actions/how-tos/manage-workflow-runs/re-run-workflows-and-jobs#re-running-failed-jobs-in-a-workflow

As a rule of thumb, generally, PR authors should request a review & get a PR approval from the respective companies' CODEOWNERS before requesting a review from core maintainers.

If additional help is needed, PR authors can reach out to core maintainers over Slack.

@functionstackx functionstackx added the profile-enabled Triggers .github/workflows/profile.yml against .github/profile-target.env label Jun 15, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 85aaced. Configure here.

git rebase origin/master
if [ "$attempt" = 8 ]; then echo "push failed after ${attempt} attempts" >&2; exit 1; fi
sleep $(( (RANDOM % 6) + 2 ))
done

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR trace path uses wrong SHA

Medium Severity

Label-triggered runs check out pull_request.head.sha, but trace storage and relay URLs use GITHUB_SHA, which on pull_request events is the temporary merge commit, not the profiled branch HEAD. Artifacts and links are keyed to a different SHA than the code that was actually run.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 85aaced. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

profile-enabled Triggers .github/workflows/profile.yml against .github/profile-target.env

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant